package com.ldzy.webase.entity;

import lombok.*;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author ：Lq
 * @version ：1.0
 * @date ：2022/10/25 20:23
 * @description ：t_user用户表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer uid;
    private String username;
    private String password;
    private String sex;
    private String studentId;
    private String department;
    private String avatar;
    private Date birthday;
    private String trueName;
    private String phoneNumber;
    private String introduce;
    private String question;
    private String answer;
    private String email;
    private String qqNumber;
    private String wxNumber;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Timestamp endLoginTime;
    private String status;
    private String role;

    /*
     *  以下字段都是数据库没有的，后端执行特定数据操作后加上去的！
     */
    private Integer publishNum; // 我的发布数
    private Integer commentNum; // 我的评论数
    private Integer likeNum; // 我的点赞数
}